package fastwave.cloud.demo.fastwave.biz.subscriber.services;

import org.springframework.amqp.rabbit.annotation.RabbitListener;
import org.springframework.stereotype.Component;

/**
 * <p>Title: FanoutReceiver</p>
 * <p>Description: </p>
 *
 * @author: dwLiu
 * @date: 2020/4/7 0:01
 */
@Component
public class FanoutReceiver {

    @RabbitListener(queues = "FanoutQueue")
    public void receiver(String msg){
        System.out.println("收到的消息："+msg);
    }

    @RabbitListener(queues = "FanoutQueue2")
    public void receiver2(String msg){
        System.out.println("收到的消息："+msg);
    }
}
